package com.leostadyn.stackfarm.timestatistics.model.bean;

import com.google.gson.Gson;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class StaffTimeRecordBean implements Serializable {


    /**
     * dataList : [{"projectCode":"string","projectId":"string","projectName":"string","taskTime":0,"timeSheetId":"string","workDate":"2019-07-30T07:50:12.885Z"}]
     * infos : {"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"}
     */

    private InfosBean infos;
    private List<DataListBean> dataList;

    public static StaffTimeRecordBean objectFromData(String str) {

        return new Gson().fromJson(str, StaffTimeRecordBean.class);
    }

    public InfosBean getInfos() {
        return infos;
    }

    public void setInfos(InfosBean infos) {
        this.infos = infos;
    }

    public List<DataListBean> getDataList() {
        return dataList;
    }

    public void setDataList(List<DataListBean> dataList) {
        this.dataList = dataList;
    }

    public static class InfosBean {
        /**
         * additionalProp1 : string
         * additionalProp2 : string
         * additionalProp3 : string
         */

        private String firstInfo;


        public static InfosBean objectFromData(String str) {

            return new Gson().fromJson(str, InfosBean.class);
        }

        public String getFirstInfo() {
            return firstInfo;
        }

        public void setFirstInfo(String firstInfo) {
            this.firstInfo = firstInfo;
        }
    }

    public static class DataListBean {
        /**
         * projectCode : string
         * projectId : string
         * projectName : string
         * taskTime : 0
         * timeSheetId : string
         * workDate : 2019-07-30T07:50:12.885Z
         */

        private String projectCode;
        private String projectId;
        private String projectName;
        private double taskTime;
        private String timeSheetId;
        private Date workDate;

        public static DataListBean objectFromData(String str) {

            return new Gson().fromJson(str, DataListBean.class);
        }

        public String getProjectCode() {
            return projectCode;
        }

        public void setProjectCode(String projectCode) {
            this.projectCode = projectCode;
        }

        public String getProjectId() {
            return projectId;
        }

        public void setProjectId(String projectId) {
            this.projectId = projectId;
        }

        public String getProjectName() {
            return projectName;
        }

        public void setProjectName(String projectName) {
            this.projectName = projectName;
        }

        public double getTaskTime() {
            return taskTime;
        }

        public void setTaskTime(double taskTime) {
            this.taskTime = taskTime;
        }

        public String getTimeSheetId() {
            return timeSheetId;
        }

        public void setTimeSheetId(String timeSheetId) {
            this.timeSheetId = timeSheetId;
        }

        public Date getWorkDate() {
            return workDate;
        }

        public void setWorkDate(Date workDate) {
            this.workDate = workDate;
        }
    }
}
